package com.jatosoft.poc.priceinquiry.core.domain;

import java.io.Serializable;

import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;

//@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class BaseDomain implements Serializable {

	public BaseDomain() {
		super();
	}

	Key id;

	public Key getId() {
		return id;
	}

	public void setId(Key id) {
		this.id = id;
	}

	public String getStringId() {
		if (id == null) {
			return null;
		}
		return KeyFactory.keyToString(id);
	}

	public void setStringId(String strId) {
		if (strId == null) {
			this.id = null;
		}
		this.id = KeyFactory.stringToKey(strId);
	}
}